FUNCTION

list.set

function set(index: integer, value: T): T

Set the element at the specified index, overwriting the element that was previously at that index. The size of the list is unchanged.

Parameters

  • index — the index of the element to set
  • value — the value to set

Returns

the overwritten element

Throws

  • exception — if the index is out of bounds

Since

0.6.0

© 2026 Chromia